package com.onpositive.wiki3.catmodels;

import com.onpositive.wiki3.db.catmodel.Category;

public class PluralCatModel implements ICategoryModel{

	@Override
	public int score(Category cat) {
		String string = cat.toString();
		if (string.indexOf('_')!=-1){
			return 0;
		}
		if (string.charAt(string.length()-1)=='s'){
			cat.setTag(ICategoryModel.SINGLE_PLURAL_NOUN);
			return Integer.MAX_VALUE;
		}
		return 0;
	}

	@Override
	public String name() {
		return "plurals";
	}

	@Override
	public boolean isPossibleCategorization(Category cat) {
		return true;
	}

	@Override
	public String getPrimaryParentForm(Category cat) {
		return cat.toString();
	}

	
}
